
<%= simple_form_for([@po,@po_payment]) do |f| %>
  <%= f.error_notification %>
  <%= f.error_notification message: f.object.errors[:base].to_sentence if f.object.errors[:base].present? %>

  <div class="form-inputs">
    <%= f.input :amount, label: "金额" %>
    <%= f.input :date , label: "付款日期" %>
    <%= f.input :remarks , label: "备注" %>
    <input type="hidden" name="po_payment[purchase_order_id]" value="<%=@po.id %>" />
  </div>

  <div class="form-actions">
    <%= f.button :submit %>
  </div>
<% end %>
